import {http} from "@/interceptor/luch-request/index.js"
// 创建年纪
export const save = (data) => {
    return http.post("api/admin/grade/v1/saveGrade", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}
// 年纪列表
export const page = (data) => {
	return http.get("api/admin/grade/v1/pageGrade", {
		data: data
	});
}
 // 删除年级
export const del = (data) => {
    return http.delete("api/admin/grade/v1/gradeDelete",data,{
		header:{
			"content-type": "application/json"
		}
	});	
} 
// 编辑年级
export const update = (data) => {
    return http.put("api/admin/grade/v1/updateGrade",data,{
		header:{
			"content-type": "application/json"
		}
	});	
} 
//树形列表
export const gradeClassStudentTree = (data) => {
	return http.get("api/admin/grade/v1/gradeClassStudentTree", {
		data: data
	});
}